package com.common.springbootcommonmessage.exceptions;


import com.common.springbootcommonmessage.enums.AutoBestErrorCode;

public class AutoBestException extends Exception {

    private static final long serialVersionUID = 1L;



    private final AutoBestErrorCode errorCode;

    public AutoBestException(AutoBestErrorCode errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }


    /**
     * @return the errorCode
     */
    public AutoBestErrorCode getErrorCode() {
        return errorCode;
    }
}